package com.oc.mba.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * OcTopic entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "oc_topic", catalog = "openmba")
public class OcTopic implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer paperId;
	private Integer topicType;
	private Integer topicIndex;
	private String topicTitle;
	private String topicSummary;
	private Short topicStatus;
	private String topicTag;
	private String topicImage;

	// Constructors

	/** default constructor */
	public OcTopic() {
	}

	/** minimal constructor */
	public OcTopic(Integer paperId, Integer topicType, Integer topicIndex,
			String topicTitle) {
		this.paperId = paperId;
		this.topicType = topicType;
		this.topicIndex = topicIndex;
		this.topicTitle = topicTitle;
	}

	/** full constructor */
	public OcTopic(Integer paperId, Integer topicType, Integer topicIndex,
			String topicTitle, String topicSummary, Short topicStatus,
			String topicTag, String topicImage) {
		this.paperId = paperId;
		this.topicType = topicType;
		this.topicIndex = topicIndex;
		this.topicTitle = topicTitle;
		this.topicSummary = topicSummary;
		this.topicStatus = topicStatus;
		this.topicTag = topicTag;
		this.topicImage = topicImage;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "paper_id", nullable = false)
	public Integer getPaperId() {
		return this.paperId;
	}

	public void setPaperId(Integer paperId) {
		this.paperId = paperId;
	}

	@Column(name = "topic_type", nullable = false)
	public Integer getTopicType() {
		return this.topicType;
	}

	public void setTopicType(Integer topicType) {
		this.topicType = topicType;
	}

	@Column(name = "topic_index", nullable = false)
	public Integer getTopicIndex() {
		return this.topicIndex;
	}

	public void setTopicIndex(Integer topicIndex) {
		this.topicIndex = topicIndex;
	}

	@Column(name = "topic_title", nullable = false)
	public String getTopicTitle() {
		return this.topicTitle;
	}

	public void setTopicTitle(String topicTitle) {
		this.topicTitle = topicTitle;
	}

	@Column(name = "topic_summary")
	public String getTopicSummary() {
		return this.topicSummary;
	}

	public void setTopicSummary(String topicSummary) {
		this.topicSummary = topicSummary;
	}

	@Column(name = "topic_status")
	public Short getTopicStatus() {
		return this.topicStatus;
	}

	public void setTopicStatus(Short topicStatus) {
		this.topicStatus = topicStatus;
	}

	@Column(name = "topic_tag")
	public String getTopicTag() {
		return this.topicTag;
	}

	public void setTopicTag(String topicTag) {
		this.topicTag = topicTag;
	}

	@Column(name = "topic_image")
	public String getTopicImage() {
		return this.topicImage;
	}

	public void setTopicImage(String topicImage) {
		this.topicImage = topicImage;
	}

}